/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-10-17 14:12:11
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-10-19 20:26:49
 * @FilePath: \实训二——宏业找房\app\demo\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { getUrl ,deleteUrl,putUrl ,postUrl} from "../utils/request";
// 获取房源数据
export const httpGetHousing = async (url, params) => await postUrl(url, params);
// 删除房源数据
export const httpDelHousing = async (url, params) => await deleteUrl(url, params);
// 添加房源数据
export const httpAddHousing = async (url, params) => await putUrl(url, params);
// 修改房源数据
export const httpEditHousing = async (url, params) => await postUrl(url, params);
// 获取经纪人名单
export const httpGetAgent = async (url, params) => await getUrl(url, params);
// 指派经纪人名单
export const httpSetAgents = async (url, params) => await postUrl(url, params);
// 指派状态
export const httpChangeHousingState = async (url, params) => await postUrl(url, params);